<template>
  <div id="basicLayout">
    <a-layout style="height: 400px">
      <a-affix :offsetTop="0">
        <a-layout-header class="header">
          <GlobalHeader />
        </a-layout-header>
      </a-affix>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">@ by YT</a-layout-footer>
    </a-layout>
  </div>
</template>

<script>
import GlobalHeader from "@/components/GlobalHeader";
export default {
  name: "BasicLayout",
  components: { GlobalHeader },
};
</script>

<style scoped>
#basicLayout .header {
  margin-bottom: 1px;
  box-shadow: black 1px 1px 1px;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

#basicLayout .content {
  background: linear-gradient(to right, #bbb, #fff);
  margin-bottom: 16px;
}

#basicLayout .footer {
  background: #efefef;
  padding: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  margin: 0;
}
</style>
